<template>
    <div class="not-found">
      <div class="content">
        <h1>404</h1>
        <p>页面未找到</p>
        <button @click="goHome">返回首页</button>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    name: 'NotFound',
    methods: {
      goHome() {
        this.$router.push('/');
      }
    }
  }
  </script>
  
  <style scoped>
  .not-found {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f0f0f0;
    font-family: 'Arial', sans-serif;
  }
  
  .content {
    text-align: center;
    color: #333;
  }
  
  h1 {
    font-size: 10em;
    margin: 0;
    color: #e74c3c;
  }
  
  p {
    font-size: 1.5em;
    margin: 0 0 20px;
  }
  
  button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #e74c3c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #c0392b;
  }
  </style>
  